package com.oig.sys.msg.api.factory;

import com.oig.sys.msg.api.ExportTaskService;
import com.oig.sys.msg.api.fallback.ExportTaskServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;


public class ExportTaskServiceFallbackFactory implements FallbackFactory<ExportTaskService> {

    @Override
    public ExportTaskService create(Throwable cause) {
        ExportTaskServiceFallBackImpl exportTaskServiceFallBack = new ExportTaskServiceFallBackImpl();
        exportTaskServiceFallBack.setCause(cause);
        return exportTaskServiceFallBack;
    }


}
